package org.zoomdy.gdbx.arch;

public class TargetRegisters
{
    public Register[] arrayRegisters;
    
    public TargetRegisters(int regNumber)
    {
        this.arrayRegisters = new Register[regNumber];
    }
    
    Register getRegister(String name)
    {
        for(int i = 0; i < this.arrayRegisters.length; i++)
        {
            if(this.arrayRegisters[i].name.equals(name))
            {
                return this.arrayRegisters[i];
            }
        }
        
        return null;
    }
}
